import Vue from "vue";
import Vuex from "vuex";
import getters from "./getters";
import actions from "./actions";
import profile from "./modules/profile";
import auth from "./modules/auth";
import user from "./modules/user";
import staff from "./modules/staff";
import staffJob from "./modules/staffJob";
import company from "./modules/company";
import device_unbind from "./modules/device_unbind";
import device_bind from "./modules/device_bind";
import device_report from "./modules/device_report";
import device_instruct from "./modules/device_instruct";
import app_version from "./modules/app_version";
import trashcan_location from "./modules/trashcan_location";
import user_login_log from "./modules/user_login_log";
import user_operate_log from "./modules/user_operate_log";
import auth_rule from "./modules/auth_rule";
import auth_group from "./modules/auth_group";
import toweb from "./modules/toweb";

Vue.use(Vuex);

// 导出 store 对象
export default new Vuex.Store({
  getters,
  actions,
  modules: {
    profile,
    auth,
    user,
    company,
    staff,
    staffJob,
    device_unbind,
    device_bind,
    device_report,
    device_instruct,
    trashcan_location,
    user_login_log,
    user_operate_log,
    app_version,
    auth_rule,
    auth_group,
    toweb
  }
});
